package com.itcv.spring.security.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/manager")
public class ManagerController {
    /**
     * 注解配置，只有User这个角色的用户才可以访问
     * @return
     */
    // @PreAuthorize("hasRole('User')")
    @RequestMapping("/index")
    public String index() {
        return "/manager/index";
    }


}
